ENABLE OBJECT ZBIAS

This command will enable the setting of a Z-Bias slope and depth value, used to alter how an object renders to the screen based on its own Z buffer value and the Z buffer values already present in the scene.

  Syntax
ENABLE OBJECT ZBIAS Object Number, Slope Scale, Depth
  Parameters
Object Number
Integer
Specify an object number between 1 and 2415919103.
Slope Scale
Float
This value is a float number such as 0.5
Depth
Float
Specify the depth value.

  Returns

This command does not return a value.

  Description

This command can be used to favour rendering one object over another, where both objects are in identical positions in the scene.

  Example Code
set display mode 800,600,32
cls
make object sphere 1,20
ENABLE OBJECT ZBIAS 1
do
loop
end
  See also

BASIC3D Commands Menu
Index